//
//  KnobControl.h
//  SKPAD
//
//  Created by admin@amonline.com.cn on 15/5/8.
//  Copyright (c) 2015年 amo. All rights reserved.
//

#import "Knob.h"
#import "KnobBackground.h"
#import "KnobGraduation.h"
#import "KnobRotationGestureRecognizer.h"

@interface KnobControl : UIView
{
    //旋钮
    Knob * _knob;
    //背景图层
    KnobBackground * _knobBackground;
    
    //刻度图层
    KnobGraduation * _knobGraduation;
    
    //刻度图层
    KnobRotationGestureRecognizer * _gestureRecognizer;
}

//实际值 在范围内的百分比值，用来设置角度
@property (nonatomic, assign) CGFloat value;
//实际刻度值
@property (nonatomic, assign) CGFloat valueAngle;
//最小值，默认是0
@property (nonatomic, assign) CGFloat minimumValue;
//最大值，默认是1
@property (nonatomic, assign) CGFloat maximumValue;

//实际是两个角度的π值
@property (nonatomic, assign) CGFloat startAngle;

@property (nonatomic, assign) CGFloat endAngle;


-(void) setValue:(CGFloat)value animated:(BOOL)animated;

@property (nonatomic, assign, getter=isContinuous) BOOL continuous;


@end